﻿@model HelpDesk.Models.Activity

@{
    ViewBag.Title = "Ticket# " + @ViewBag.TicketID;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="~/Content/bootstrap-wysihtml5.css" rel="stylesheet" />

<div class="span12">
    <div>
        @ViewBag.ErrorsMsg
    </div>

    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
            
        <div class="control-group">
             @Html.LabelFor(model => model.Text)
            <div class="controls">
                @Html.TextAreaFor(model => model.Text, new {@class = "span12", rows = "5" })
                @Html.ValidationMessageFor(model => model.Text)
            </div>
        </div>
        
        <div class="form-actions">
            <a href="@Url.Action("Details", "Ticket", new { id = @ViewBag.TicketID })" type="button" class="btn">Cancel</a>
            <button type="submit" class="btn btn-primary">Add Comment</button>
        </div>

        <p>
            <a href="javascript:history.go(-1)">Back to Ticket Details</a>
        </p>


    }


</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    

    @*<script src="~/Scripts/bootstrap-wysihtml5.js"></script>


    <script>
        $(document).ready(function () {
            $(".span12 wysi").wysihtml5();
        });
    </script>*@
}
